package cn.sun.org.domain;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department {
    /**主键*/
    private Long id;
    /**部门编号*/
    private String sn;
    /**部门名称*/
    private String name;
    /*暂时不用*/
    private String dirPath;
    /**部门状态 0 正常 ，-1 停用*/
    private int state;
    /**部门经理 和员工关联*/

    //private Long manager_id
    /**部门经理*/
    private Employee manager;
    /**上级部门*/
   // private Long parent_id;
    private Department parent;

    private List<Department> children = new ArrayList<>();


}
